package model

import (
	"fmt"

	"gorm.io/gorm"
)

type FirstTimeTeacherInfo struct {
	gorm.Model
	TeacherID string `gorm:"size:20;" json:"teacher_id"`
	Name      string `gorm:"size:255;not null;" json:"name"`
	Desc      string `gorm:"type:text" json:"desc"`
}

func (FirstTimeTeacherInfo) TableName() string {
	return "first_time_teacher_info"
}

func (f FirstTimeTeacherInfo) Template() string {
	return fmt.Sprintf("Teacher TeacherID:%s,Description:%s", f.TeacherID, f.Desc)
}
